package com.stottlerhenke.simbionic.test.parsing;

/**
 * <p>Title: Parsing_Interface</p>
 * <p>Description: This is a sample project designed to show you how to build a very simple "Hello World" program using SimBionic.
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: Stottler Henke</p>
 * @version 1.0
 */


import java.util.ArrayList;

import com.stottlerhenke.dynamicscripting.DynamicScriptingWrapper;
import com.stottlerhenke.simbionic.api.SB_Exception;
import com.stottlerhenke.simbionic.api.SB_Interface;
import com.stottlerhenke.simbionic.api.SB_Param;



 /**
 * This class defines a simple interface between SimBionic and
 * our HelloWorld application.
 */
public class Parsing_Interface extends SB_Interface
{	
	public Parsing_Interface()
	{
	}
	
	public SB_Param doPredicate(int predId, long entityId, ArrayList params)
	{
		SB_Param returnValue = new SB_Param();
		
		return returnValue;
	}
	
	public void doAction(int actionId, long entityId, ArrayList params) throws SB_Exception
	{
		switch (actionId)
		{
		case Parsing_Constants.ACTION_Println:
		{
			// extract the first parameter, which is of type "string"
			String message = ((SB_Param) params.get(0)).getString();
			System.out.println(message);
		}
		break;
		}
	}
	
	public String getModuleName()
	{
		return new String("ParsingTest");
	}
	
	public ArrayList getModuleActions()
	{
		return new ArrayList();
	}
	
	public ArrayList getModulePredicates()
	{
		return new ArrayList();
	}
}